﻿using Newtonsoft.Json;
using QingZhouLinYe_Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;

namespace QingZhouLinYe_Web
{
    public class LoginBasePage : Page
    {
        protected LoginUser loginUser { 
            get
            {
                string strUser = ((FormsIdentity)this.Context.User.Identity).Ticket.UserData;
                return JsonConvert.DeserializeObject<LoginUser>(strUser);
            }
        }

        public LoginBasePage()
        {

        }
    }
}